package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class UserController {

    @RequestMapping(value = "/success",method = RequestMethod.GET)
    public String save(){
        return "/success.jsp";
    }

    @RequestMapping(value = "/falure" ,method = RequestMethod.GET,params = "username")
    public String fail(){
        System.out.println("userController");
        return "failure";
    }


}
